<?php
/**
 * 住みたい駅検索用関数<br />
 *
 * @package apamanshop
 * @author　SS永田
 * @copyright　
 */
class Rstobi_Model_SumitaiekiSearch extends Rstobi_Model_Base
{
    /**
     * 駅検索用Where句取得
     * 
	 * @access	public
	 * @param   array
	 * @param	array ※参照渡し
	 * @return  string
     */
	public function getWhereForSumitaiekisearch($params ,&$db_params)
	{
		$strWhere  = ' where';
		
		// 沿線・駅CD
		$strWhere .= ' (   M03.M03_EKI_CD = T03.T03_EKI_CD01';
		$strWhere .= '  OR M03.M03_EKI_CD = T03.T03_EKI_CD02';
		$strWhere .= '  OR M03.M03_EKI_CD = T03.T03_EKI_CD03 )';
		
		return $strWhere;
	}
}
?>